const HtmlWebpackPlugin = require("html-webpack-plugin");
const Webpack = require("webpack")
const path = require("path");
module.exports = {
    mode: "development",
    entry: "./src/index.ts",
    devServer: {
        // contentBase: "./dist",
        hot: true
    },
    output: {
        filename: "[name].js",
        path: path.join(__dirname, "/release")
    },
    module: {
        rules: [
            {
                test: /\.ts$/,
                loader: "ts-loader"
            }
        ]
    },
    plugins: [
        new Webpack.HotModuleReplacementPlugin(),
        new HtmlWebpackPlugin({
            title: "html webpack plugin!!!"
        })
    ]
}